Sets a Uniform Offset that will take effect with the next BindRenderResourceSetCommand or BindRenderResourceSetCommand. More...
#include <kanzi/gfx/commands.hpp>
Public Member Functions | |
| SetUniformOffsetCommand () | |
| Constructor. | |
Public Member Functions inherited from kanzi::gfx::BaseCommand | |
| uint32_t | getSize () const |
| Gets the command size in bytes. | |
| uint8_t | getTag () const |
| Gets the command tag. | |
| CommandType | getType () const |
| Gets the command type. | |
| void | setTag (uint8_t tag) |
| Sets the command tag. | |
Public Attributes | |
| uint8_t | bufferIndex |
| Buffer index within the resource set for the uniform buffer. | |
| uint32_t | offset |
| The uniform buffer offset. | |
| uint8_t | setIndex |
| Resource set index for the uniform buffer. | |
Additional Inherited Members | |
Protected Member Functions inherited from kanzi::gfx::BaseCommand | |
| BaseCommand (CommandType t, uint32_t s) | |
| Constructor. | |
| BaseCommand (const BaseCommand &other) | |
| Copy Constructor. | |
| BaseCommand & | operator= (const BaseCommand &other) |
| Assignment operator. | |
Sets a Uniform Offset that will take effect with the next BindRenderResourceSetCommand or BindRenderResourceSetCommand.
Only limits::MaxDynamicUniformBuffers instances of this command can be submitted between bind resource set commands.
|
inlineexplicit |
Constructor.
| uint8_t kanzi::gfx::SetUniformOffsetCommand::bufferIndex |
Buffer index within the resource set for the uniform buffer.
| uint32_t kanzi::gfx::SetUniformOffsetCommand::offset |
The uniform buffer offset.
This offset must be a multiple of the current DevicePropertyId::UniformBufferOffsetAlignment. To determine the effective offset for the associated uniform buffer view, add UniformBufferView::offset to SetUniformOffsetCommand::offset. The offset must be such that the end of the associated UniformBufferView after the offset cannot extend beyond the end of the buffer.